class Radio {
  props = ["value", "checked", "disabled"];

  state = {
    checked: false,
  };

  constructor(RadioGroup) {
    scope.context = RadioGroup[0].getContext();
    scope.context.$watch(
      "value",
      function (newValue) {
        scope.state.checked = scope.value === newValue;
      },
      true
    );
  }

  handleClick() {
    scope.context.value = scope.value;
    console.log(scope.context);
  }
}
